package com.zto.tx.dao.impl;

import com.zto.tx.anno.MyAOPAnnotation;
import com.zto.tx.dao.OrderDao;
import org.springframework.stereotype.Component;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2020-12-23 21:40
 **/
@Component
public class OrderDaoImplA implements OrderDao {

    @Override
    @MyAOPAnnotation
    public int update() {
        System.out.println("this is update");
        return 2;
    }

    @Override
    @MyAOPAnnotation
    public void save() {
        System.out.println("this is orderDao save");
    }

    @Override
    public String query(String name) {
        System.out.println("query A...");
        return "daoA";
    }
}
